package cn.javav.sso.entity;



public class Token {
	private String tokenId;
	private User holder;
	private String ticket;
	private long timestamp;
	private int deadline;
	
	public Token() {
	}
	public Token(String tokenId, User holder, String ticket, long timestamp,
			int deadline) {
		this.tokenId = tokenId;
		this.holder = holder;
		this.ticket = ticket;
		this.timestamp = timestamp;
		this.deadline = deadline;
	}
	
	
	
	@Override
	public String toString() {
		return "Token [tokenId=" + tokenId + ", holder=" + holder + ", ticket="
				+ ticket + ", timestamp=" + timestamp + ", deadline="
				+ deadline + "]";
	}
	
	public String getTokenId() {
		return tokenId;
	}
	public void setTokenId(String tokenId) {
		this.tokenId = tokenId;
	}
	public User getHolder() {
		return holder;
	}
	public void setHolder(User holder) {
		this.holder = holder;
	}
	public String getTicket() {
		return ticket;
	}
	public void setTicket(String ticket) {
		this.ticket = ticket;
	}
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	public int getDeadline() {
		return deadline;
	}
	public void setDeadline(int deadline) {
		this.deadline = deadline;
	}

	
}
